﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class one : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        using (DataClassesDataContext ds = new DataClassesDataContext())
        {
            Repeater1.DataSource = from q in ds.YeWuZiLiao
                                   where q.parentID==null || q.parentID<0
                                   orderby q.id
                                   select new 
                                   {
                                   x=q.id,
                                   y=q.mingcheng
                                   };
            Repeater1.DataBind();
        }
    }
}